package com.youkeyi.ddy.cloud.basic.pub.ad.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 国家信息表
 * </p>
 *
 * @author xiawang.liu
 * @since 2024-04-01
 */
@TableName("sys_ad_country")
public class SysAdCountry extends Model<SysAdCountry> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("zh_name")
    private String zhName;

    @TableField("code")
    private String code;

    @TableField("code2")
    private String code2;

    /**
     * 是否显示 1 显示 0 不显示
     */
    @TableField("is_show")
    private Integer isShow;

    @TableField("top_num")
    private Integer topNum;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getZhName() {
        return zhName;
    }

    public void setZhName(String zhName) {
        this.zhName = zhName;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public String getCode2() {
        return code2;
    }

    public void setCode2(String code2) {
        this.code2 = code2;
    }
    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }
    public Integer getTopNum() {
        return topNum;
    }

    public void setTopNum(Integer topNum) {
        this.topNum = topNum;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysAdCountry{" +
            "id=" + id +
            ", name=" + name +
            ", zhName=" + zhName +
            ", code=" + code +
            ", code2=" + code2 +
            ", isShow=" + isShow +
            ", topNum=" + topNum +
        "}";
    }
}
